/*
 * @Date: 2023-03-27 17:48:31
 * @LastEditTime: 2023-03-30 09:07:57
 */
import { resolve } from 'path';
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';

export default defineConfig({
  build: {
    lib: {
      entry: resolve(__dirname, 'package/index'),
      name: 'langSDK',
      fileName: (format) => `lang-sdk.${format}.js`,
    },
  },
  plugins: [vue()],
});
